using System.Linq;
using Microsoft.Services.NuGet.Server.Infrastructure;

namespace Microsoft.Services.NuGet.Server.DataServices {
    public class PackageContext {
        private IServerPackageRepository _repository;
        public PackageContext(IServerPackageRepository repository) {
            _repository = repository;
        }

        public IQueryable<Package> Packages {
            get {
                return _repository.GetPackagesWithDerivedData();
            }
        }
    }
}
